home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 49 / Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso / -serious- / comms / other / cim_r32 / is / updateexe < prev    next >
Text File  |  1999-12-06  |  2KB  |  77 lines

  1. ;
  2. ; CIM's Installer Script.
  3. ; $VER: CIMBINInstallerScript 3.1.19 (30.11.99) Written by Jan-Erik Tervo 1998-1999
  4. ; Installer version 42.12 or better recommended
  5. ;
  6.  
  7. (ONERROR
  8.       (CLEANUP)
  9.         )
  10.  
  11. (SET @default-dest "CIM:bin/")
  12.  
  13. (IF  (exists "CIM:" (noreq))
  14.      (
  15.      
  16.      (SET cim_vernum (getversion "CIM:bin/cim"))
  17.      (SET cim_ver (/ cim_vernum 65536))
  18.      (SET cim_rev (- cim_vernum (* cim_ver 65536)))
  19.  
  20.      (SET e_cim_vernum (getversion "stuff/bin/cim"))
  21.      (SET e_cim_ver (/ e_cim_vernum 65536))
  22.      (SET e_cim_rev (- e_cim_vernum (* e_cim_ver 65536)))
  23.  
  24.  
  25.      ; ENGLISH STRINGS
  26.  
  27.      (SET #alku_str
  28.           (cat "\nThis script will only update the executables at CIM:bin/\n\nYou have currently CIM version " cim_ver "." cim_rev "\n\nYou are about to install version " e_cim_ver "." e_cim_rev)
  29.           )
  30.  
  31.      (SET #str-installing-exe
  32.           (cat "\n\nInstalling...")
  33.  
  34.      )
  35.  
  36.  
  37.  
  38.      (MESSAGE #alku_str)
  39.  
  40.      (COMPLETE 0)
  41.  
  42.      (SET CIMdirBin "CIM:bin/")
  43.      (SET CIMdir "CIM:")
  44.      (SET @default-dest CIMdir)
  45.  
  46.  
  47.      (COMPLETE 50)
  48.  
  49.      (COPYFILES
  50.         (source "stuff/bin/")
  51.         (pattern "#?")
  52.         (dest CIMdirBin)
  53.         (prompt #str-installing-exe)
  54.         )
  55.  
  56.      (COMPLETE 75)
  57.  
  58.      (RENAME "CIM:WPositions" "CIM:CONFIG/WPositions")
  59.  
  60.      (RENAME "CIM:area_codes" "CIM:CONFIG/area_codes")
  61.  
  62.      (RENAME "CIM:ccodes" "CIM:CONFIG/ccodes")
  63.  
  64.      (PROTECT "CIM:bin/cim" "rwed")
  65.  
  66.      (RUN "multiview IMPORTANT")
  67.  
  68.      )
  69.      (MESSAGE "CIM is not installed correctly! (No CIM: assign.) Can't update.")
  70. )
  71. (COMPLETE 100)
  72.  
  73. ; end of installation
  74.  
  75. (EXIT)
  76.  
  77.